package rd.hardcore.engine.datas.streamBoard 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class StreamBoardEvent extends Event 
	{
		public static const NO_BOARD_EXIST			: String = "no_new_board";
		public static const BOARD_EXISTS			: String = "board_exists";
		public static const BUILD_BOARD				: String = "build_board";
		public static const BOARD_READY_TO_DISPLAY 	: String = "board_ready_to_display";
		
		
		public var id:int;
		public function StreamBoardEvent(type:String, _id:int = 0, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			id = _id;
		} 
		
		public override function clone():Event 
		{ 
			return new StreamBoardEvent(type, id, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("StreamBoardEvent", "type", "id", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}